<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ page import="java.net.URLEncoder" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<% String basePath = request.getContextPath();
   String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+basePath;
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title></title>
</head>
<body>
	<input type="button" value="crm付费用户" onclick="javascript:search()">
	<table width="100%" border="1" cellspacing="0" cellpadding="0">
	  <tr>
	    <td>淘宝昵称</td>
	    <td>子昵称</td>
	    <td>百会帐号</td>
	    <td>百会密码</td>
	    <td>邮箱</td>
	    <td>类别</td>
	    <td>创建时间</td>
	    <td>授权状态</td>
	    <td>实施状态</td>
      </tr>
      <s:iterator id="payuser" value="payUserList" status="sts">
      <tr>
      	<td>${payuser.taobaoNick}</td>
      	<td>${payuser.subNick}</td>
	    <td>${payuser.baihuiId}</td>
	    <s:if test="#payuser.subNick == null">
	     	<td>${payuser.password}</td>
	    </s:if>
	    <s:else>
	    	<td>${payuser.subpw}</td>
	    </s:else>
	    <td>${payuser.email}</td>
	    <td>${payuser.appName}</td>
	    <td>${payuser.createTime}</td>
	    <td>${payuser.accreditStu}</td>
	    <s:if test="#payuser.subNick == null">
		    <s:if test="#payuser.status == 1">
		      <td><a href="<%=basePath%>/manager/exepayuser.action?baihuiId=${payuser.baihuiId}&appName=${payuser.appName}">完成</a></td>
		    </s:if>
		    <s:else>
		       <td><a href="<%=basePath%>/manager/exepayuser.action?baihuiId=${payuser.baihuiId}&appName=${payuser.appName}">实施</a></td>
		    </s:else>
	    </s:if>
      </tr>
      </s:iterator>
    </table>
    <script>
    	function search(){
    		var url = '<%=basePath%>/manager/payuser.action?userType=1';
			window.open('<%=basePath%>/manager/payuser.action?userType=1');
		}
    </script>
</body>
</html>